//
//  ProjectGoingTableViewCell.m
//  work
//
//  Created by 徐宏飞 on 16/6/2.
//  Copyright © 2016年 方伟. All rights reserved.
//

#import "ProjectGoingTableViewCell.h"
#import "AllProjectInfoModel.h"
#import "NSString+CZNSStringExt.h"

@implementation ProjectGoingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setModel:(AllProjectInfoModel *)model{
    _model = model;
    //开始时间
    _statday.text = [NSString stringWithFormat:@"%@", [NSString getBeijingDayWithStrTime:_model.start_day]];
    //结束时间
    _endday.text = [NSString stringWithFormat:@"%@", [NSString getBeijingDayWithStrTime:_model.end_day]];

    //地址
    _address.text = [NSString stringWithFormat:@"%@", _model.address];
    //
    _price.text = [NSString stringWithFormat:@"%@/平方", _model.price];
    //
    _square.text = [NSString stringWithFormat:@"x%@/平方", _model.square];
    //
    _amount.text = [NSString stringWithFormat:@"共计%@元", _model.amount];
   
    _phone.text = [NSString stringWithFormat:@"联系电话:%@", _model.mobile];
   
    _contact_name.text = [NSString stringWithFormat:@"业主:%@", _model.contact_name];
   
}
@end
